package com.zhongyu.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhongyu.pojo.Kehu;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface KehuMapper extends BaseMapper<Kehu> {
    @Select("select * from smbms_kehu  ${ew.customSqlSegment}")
    List<Kehu> findAll(Page page, @Param("ew") Wrapper wrapper);
    @Select("select kehu_name from smbms_kehu where id=#{kehuId}")
    String  findById(Integer kehuId);
}
